﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ApplicationState
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Application["Users"] == null)
            {
                Application["Users"] = 0;
            }
            else
            {
                Application.Lock();
                Application["Users"] = (int)Application["Users"] + 1;
                Application.UnLock();
            }
            usersLbl.Text = Application["Users"].ToString();
        }
    }
}